SET(PROJ_NAME onvif)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
include_directories(${PROJECT_SOURCE_DIR}/base/network/include)
include_directories(${PROJECT_SOURCE_DIR}/base/media/include)
include_directories(${PROJECT_SOURCE_DIR}/base/system_service/include)
include_directories(${PROJECT_SOURCE_DIR}/base/upgrade/include)
include_directories(${PROJECT_SOURCE_DIR}/base/web_server/include)
include_directories(${PROJECT_SOURCE_DIR}/base/file_manager/include)
include_directories(${PROJECT_SOURCE_DIR}/base/peripheral/include)
include_directories(${PROJECT_SOURCE_DIR}/foundation/stream_service/include)

# Add mongoose include path
include_directories(${CMAKE_SYSROOT}/usr/include)

set(ONVIF_SOURCES
    src/onvif_server.cpp
    src/onvif_server_impl.cpp
)

set(ONVIF_HEADERS
    src/onvif_server.h
    src/onvif_server_impl.h
)

add_library(${PROJ_NAME} STATIC ${ONVIF_HEADERS} ${ONVIF_SOURCES})
